package org.iabako.client.ui.page.business.report;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DisclosurePanel;
import com.google.gwt.user.client.ui.HTMLPanel;
import org.iabako.client.config.page.PageConfigSearchEnum;
import org.iabako.client.ui.layout.template.Page;

/**
 * Created by jose on 15/01/15.
 */
public class ReportCreate extends Composite {

    @UiTemplate("org.iabako.client.ui.layout.template.Page.ui.xml")
    interface PageTemplate extends UiBinder<HTMLPanel, Page> {
    }

    private static final PageTemplate binderPage = GWT.create(PageTemplate.class);

    interface MyUiBinder extends UiBinder<HTMLPanel, ReportCreate> {
    }

    private static final MyUiBinder binder = GWT.create(MyUiBinder.class);

    public DisclosurePanel disclosurePanel;
    public com.google.gwt.user.client.ui.Button disclosureButton;

    public ReportCreate() {
        Page page = new Page();

        HTMLPanel pagePanel = binderPage.createAndBindUi(page);

        page.setProperties(PageConfigSearchEnum.Reports);
        page.addToPageContent(binder.createAndBindUi(this));

        initWidget(pagePanel);
    }
}
